<?php if ( in_category(7) ) {
					$amazon_kindle = get_post_meta($post->ID, 'amazon_kindle', true);
                                        $ibookstore = get_post_meta($post->ID, 'amazon_kindle', true);
                                        $nook = get_post_meta($post->ID, 'nook', true);
                                        $waterstones = get_post_meta($post->ID, 'waterstones', true);
                                        $partner = get_post_meta($post->ID, 'partner', true);
					if ( $amazon_kindle != '' or $ibookstore != '' or $nook != '' or $waterstones != '' or $partner != '' ) {
		?>
						<div class="social-tw">
							<a href = "<?php echo home_url( '/' ); ?>?ig=ig&s=<?php the_title(); ?>&post_type=member_pages"><img src="<?php echo get_template_directory_uri(); ?>/images/Buylocal.png" /></a>
						</div>